﻿using MetroFramework;
using MetroFramework.Forms;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Diagnostics;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace AppleHunters
{
    public partial class Form1 : MetroForm
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void Form1_Load(object sender, EventArgs e)
        {
            ShowTipLaw();
        }

        private void ShowTipLaw()
        {
          var result = MetroMessageBox.Show(this, "本程序仅供学习交流使用，仅限用于对自己的账号进行测试管理，请勿用于商业及非法用途。请确保软件使用的合法行，如产生法律纠纷与作者无关。否则请退出删除本程序!", "免责声明  -  特别提醒", MessageBoxButtons.YesNo, MessageBoxIcon.Information);
            if (result == DialogResult.No)
            {
                Process.GetCurrentProcess().Kill();
             
            }
        }

        private void Form1_FormClosing(object sender, FormClosingEventArgs e)
        {
            Environment.Exit(0);
        }
    }
}
